package com.kn.sys.dto;

import com.kn.common.valid.AddGroup;
import com.kn.common.valid.EditGroup;
import lombok.Data;

import javax.validation.constraints.*;
import java.util.Date;

/**
 * @author zhoudf
 * @create 2021-03-05 10:51
 */
@Data
public class UserDto {
    @NotNull(message = "不为空",groups = EditGroup.class)
    private Long id;

    private Long factoryId;
@NotBlank(message = "用户名不能为空",groups = {EditGroup.class, AddGroup.class})
@Size(max = 10,message = "长度不能大于10")
    private String username;
@NotEmpty(message = "登录名不能为空")
    private String cname;


    private Boolean gender;
    private String roles;

    private Boolean isstop;

    private String remarks;

}
